<form name = "frm_edithoadon" method = "post" action = "">
<table width = "795" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">
<tr> <th colspan = "2" class = "list"> CẬP NHẬT HÓA ĐƠN </th> </tr>
<tr> 
	<td valign = "top"> <div align = "center">Khách Hàng</div> </td>
	<td valign = "top">
		<select name = "cmb_khachhang" size = "1">
		<?php 
		if(is_array($data['listkh'])){
			foreach ($data['listkh'] as $item){
		?>
			<option value = "<?php echo $item['MaKH'];?>"
				<?php
					if($data['MaKH'] == $item['MaKH']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenKH'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
<tr> 
	<td valign = "top" align = "center"> <div> Ngày Lập </div> </td>
	<td valign = "top" align = "left">
		<input name = "ngaylap" type = "text" value = "<?php echo $data['NgayLap'];?>"/>
	</td>
</tr>
<tr> 
	<td valign = "top" align = "center"> <div>Người Lập </div> </td>
	<td valign = "top" align = "left">
		<input name = "nguoilap" type = "text" value = "<?php echo $data['NguoiLap'];?>"/>
	</td>
</tr>
<tr>
	<td valign = "top" colspan = "2"> <div> <input name = "btok" type = "submit" value = "Cap Nhat"/> </div> </td>
</tr>
</table>
</form>
